<template>
  <div class="app-title">
    <span class="app-title-main">{{ title }}</span>
    <span class="app-title-en">{{ enTitle }}</span>
    <div class="app-title-line"></div>
  </div>
</template>

<script setup lang="ts">
const props = defineProps({
  title: {
    type: String,
    default: ''
  },
  enTitle: {
    type: String,
    default: ''
  }
})
</script>

<style scoped lang="less">
.app-title {
  display: flex;
  align-items: center;
  position: relative;
  .app-title-main {
    font-size: 24px;
    color: #222;
    position: relative;
    z-index: 2;
    font-weight: 500;
    letter-spacing: 0px;
    line-height: 32.93px;
    color: rgba(51, 51, 51, 1);
    margin-right: 16px;
    border-left: 3px solid #b63a3a;
    padding-left: 12px;
    background: #fff;
    display: inline-block;
  }
  .app-title-en {
    font-size: 24px;
    color: #ededed;
    font-weight: bold;
    margin-left: 4px;
    letter-spacing: 1px;
    vertical-align: middle;
  }
  .app-title-line {
    position: absolute;
    left: 0;
    right: 0;
    bottom: -28px;
    height: 1px;
    background: #ededed;
    z-index: 1;
  }
}
</style>